Skip to content

feat: Add Sarvam AI provider#272

Open
am1t wants to merge 1 commit intoandrewyng:mainfrom
am1t:am1t/add-sarvam-provider
Open

feat: Add Sarvam AI provider#272
am1t wants to merge 1 commit intoandrewyng:mainfrom
am1t:am1t/add-sarvam-provider

Conversation

@am1t
Copy link

@am1t am1t commented Feb 22, 2026

  • Adds Sarvam AI as a new provider using the OpenAI-compatible API endpoint (https://api.sarvam.ai/v1).
  • Sarvam requires a custom api-subscription-key header for authentication instead of a standard Bearer token. This is handled by passing the key via default_headers on the OpenAI SDK client, with a placeholder api_key to satisfy SDK requirements.
  • Reuses the existing OpenAICompliantMessageConverter for request/response transformation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant